import request from '@/utils/request'

function GetAllDisctionary(pageNum, pageSize) {
    return request({
        url: '/api/admin/Dictionary/get',
        method: 'GET',
        params: {pageNum, pageSize}
    })
}

function AddDictionary(data) {
    return request({
        url: '/api/admin/Dictionary/add',
        method: 'POST',
        data
    })
}

function UpdateDictionary(data) {
    return request({
        url: '/api/admin/Dictionary/update',
        method: 'PUT',
        data
    })
}

function DeleteDictionary(id) {
    return request({
        url: '/api/admin/Dictionary/remove/' + id,
        method: 'DELETE',
    })
}

export {
    GetAllDisctionary, AddDictionary, UpdateDictionary,DeleteDictionary
}